package com.jm.viewmodel;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.jm.entity.Order;
import com.jm.entity.Product;

public class ViewOrder {
		public class OrderItem{
			private String orderByOrdernumber;
			private Long orderByOrderid;
			private Long pid;
			private String pname;
			private String productpic;
			private BigDecimal productprice;
			private Integer pcount;
			private String address;
			private String remarks;
			
			public String getOrderByOrdernumber() {
				return orderByOrdernumber;
			}
			public void setOrderByOrdernumber(String orderByOrdernumber) {
				this.orderByOrdernumber = orderByOrdernumber;
			}
			public Long getOrderByOrderid() {
				return orderByOrderid;
			}
			public void setOrderByOrderid(Long orderByOrderid) {
				this.orderByOrderid = orderByOrderid;
			}
			public Long getPid() {
				return pid;
			}
			public void setPid(Long pid) {
				this.pid = pid;
			}
			public Long getProduct() {
				return pid;
			}
			public void setProduct(Long pid) {
				this.pid = pid;
			}
			public String getPname() {
				return pname;
			}
			public void setPname(String pname) {
				this.pname = pname;
			}
			public String getProductpic() {
				return productpic;
			}
			public void setProductpic(String productpic) {
				this.productpic = productpic;
			}
			public BigDecimal getProductprice() {
				return productprice;
			}
			public void setProductprice(BigDecimal productprice) {
				this.productprice = productprice;
			}
			public Integer getPcount() {
				return pcount;
			}
			public void setPcount(Integer pcount) {
				if (pcount == null){
					this.pcount = 0;
				}else{
					this.pcount = pcount;
				}
				
			}
			public String getAddress() {
				return address;
			}
			public void setAddress(String address) {
				this.address = address;
			}
			public String getRemarks() {
				return remarks;
			}
			public void setRemarks(String remarks) {
				this.remarks = remarks;
			} 
			
			
		}

		private String orderNumber;
		private int statue =0;//订单状态  0 为未处理  1为已经处理 此时库存减去相应的数量
		private Date orderTime;
		private List<OrderItem> orderItems;
		private Long uid;
		private Long orderid;
		private String payicon;
		private String userName;  //前端提出需求
		private int totalPrice;//订单总价
		private long processUid;//处理人uid
		private String processName;//处理人名字
		
		
		
		
		public long getProcessUid() {
			return processUid;
		}
		public void setProcessUid(long processUid) {
			this.processUid = processUid;
		}
		public String getProcessName() {
			return processName;
		}
		public void setProcessName(String processName) {
			this.processName = processName;
		}
		public String getOrderNumber() {
			return orderNumber;
		}
		public void setOrderNumber(String orderNumber) {
			this.orderNumber = orderNumber;
		}
		public int getTotalPrice() {
			return totalPrice;
		}
		public void setTotalPrice(int totalPrice) {
			this.totalPrice = totalPrice;
		}
		public String getUserName() {
			return userName;
		}
		public void setUserName(String userName) {
			this.userName = userName;
		}
		public Long getOrderid() {
			return orderid;
		}
		public void setOrderid(Long orderid) {
			this.orderid = orderid;
		}
		public String getPayicon() {
			return payicon;
		}
		public void setPayicon(String payicon) {
			this.payicon = payicon;
		}
		public Long getUid() {
			return uid;
		}
		public void setUid(Long uid) {
			this.uid = uid;
		}
		public List<OrderItem> getOrderItems() {
			return orderItems;
		}
		public void setOrderItems(List<OrderItem> orderItems) {
			this.orderItems = orderItems;
		}
		public int getStatue() {
			return statue;
		}
		public void setStatue(int statue) {
			this.statue = statue;
		}
		public Date getOrderTime() {
			return orderTime;
		}
		public void setOrderTime(Date orderTime) {
			this.orderTime = orderTime;
		}
		
		
}
